<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>用户登录</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="description" content="用户登录">
		<LINK href="asset/css/Default.css" type=text/css rel=stylesheet>
		<LINK href="asset/css/User_Login.css" type=text/css rel=stylesheet>
		<script type="text/javascript">
			document.onkeydown = keyDown;
            function keyDown(e) {
                if(document.all) {
                    if (event.keyCode == 13) { 
			    	   document.forms[0].action="<%=path%>/j_spring_security_check"; 
			           document.forms[0].submit();  
			       }
                } else {
                    var keycode = e.which;
                    if(keycode==13){
						document.forms[0].action="<%=path%>/j_spring_security_check"; 
			        	document.forms[0].submit();
					}
                }
            }
			function doSubmit(){
				document.forms[0].action="<%=path%>/j_spring_security_check";
				document.forms[0].submit();
			}
			function getFocus(){
				document.getElementById("username").focus();
			}
		</script>
	</head>
	<BODY id="userlogin_body" style="overflow: hidden;" onload="getFocus();">
		<form method="post">
			<DIV align="center">
				<DIV id="user_login">
					<DL>
						<DD id="user_top">
							<UL>
								<LI class="user_top_l"></LI>
								<LI class="user_top_c"></LI>
								<LI class="user_top_r"></LI>
							</UL>
							<DD id="user_main">
								<UL>
									<LI class="user_main_l"></LI>
									<LI class="user_main_c">
										<DIV class="user_main_box">
											<UL>
												<LI class="user_main_text" style="margin-top:-5px;">
													用户名：
												</LI>
												<LI class="user_main_input">
													<INPUT class=TxtUserNameCssClass type="text" id="username"
														name="j_username" size="15" maxlength="20">
												</LI>
											</ul>
											<UL>
												<LI class="user_main_text" style="margin-top:-5px;">
													密&nbsp;&nbsp;&nbsp; 码：
												</LI>
												<LI class="user_main_input">
													<INPUT class="TxtPasswordCssClass" name="j_password"
														type="password" onpaste="return false" maxlength="20">
												</LI>
											</UL>
											<UL>
												<LI class="user_main_input" style="margin-top:-5px;margin-left:5px;">
													自动登录(2周内)：
												</LI>
												<LI class="user_main_input">
													&nbsp;&nbsp;&nbsp;&nbsp;<input id="_spring_security_remember_me" name="_spring_security_remember_me" type="checkbox" value="true"/>
												</LI>
											</UL>
											<UL>
												<li class="user_main_input"><font style="color:red;">${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}</font></li>
											</UL>
										</DIV>
									</LI>
									<LI class="user_main_r">
										<a href="javascript:void(0);" onfocus='this.blur()'> <img
												class="IbtnEnterCssClass" id="IbtnEnter"
												style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
												onclick='doSubmit()' src="asset/css/images/user_botton.gif"
												name="IbtnEnter" />
										</a>
									</LI>
								</UL>
								<DD id="user_bottom">
									<UL>
										<LI class="user_bottom_l"></LI>
										<LI class="user_bottom_c"></LI>
										<LI class="user_bottom_r"></LI>
									</UL>
								</DD>
					</DL>
				</DIV>
			</DIV>
		</form>
	</body>
</html>
